lib/deploy: Also compare deployment csum versions
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 24 Apr 2018 16:51:38 +0000 (12:51 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 24 Apr 2018 17:04:27 +0000 (17:04 +0000)
commitdc4aa346a360d4fd30496f701d61a438039ec8af
tree58cf21a8b2c03344f079234b3c1b37ef445d890d
parentab8d694361a91d0a181149c7ecb1ad69dd2a9353
lib/deploy: Also compare deployment csum versions

When comparing deployments to determine whether we need a new
bootversion, we should also check whether the commit "version" metadata
is the same. Otherwise, we may end up with the a bootconfig whose
`title` includes a version that doesn't match the one from the
deployment checksum.

Closes: https://github.com/projectatomic/rpm-ostree/issues/1343
Closes: #1556
Approved by: cgwalters
src/libostree/ostree-sysroot-deploy.c
tests/libtest.sh
tests/test-admin-deploy-2.sh